home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / etc / hotplug / tape.permissions < prev    next >
Text File  |  2006-05-01  |  483b  |  25 lines

  1. #!/bin/sh
  2. #
  3. # Copyright (c) 2002 IBM Development Germany, Boeblingen
  4. #
  5. # Author:  Stefan Bader <Stefan.Bader@de.ibm.com>
  6. #
  7. # the GNU Public License applies
  8. #
  9. tape_permissions() {
  10.     DEVNO="$1"
  11.  
  12.     case "$DEVNO" in
  13.         #
  14.         # You could set other permissions to specific tape device
  15.         # numbers here. E.g. the following would override the default
  16.         # for tape 1a32
  17.         #
  18.         # 1a32) OWNER=nobody.users PERMISSIONS="u=rw,go=";;
  19.  
  20.         *)    OWNER=root.root PERMISSIONS="ug=rw,o=";;
  21.     esac
  22.  
  23.     return 0
  24. }
  25.